﻿using VIFON.DAL;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VIFON.BLL
{
    public class BLProduct
    {
        static DAProduct daProduct = new DAProduct();
        internal List<Product> GetProducts(string keyWord)
        {
            return daProduct.GetProducts(keyWord);
        }

        internal bool Insert(Product boProduct)
        {
            return daProduct.Insert(boProduct);
        }

        internal bool Update(Product boProduct)
        {
            return daProduct.Update(boProduct);
        }

        internal bool Delete(string id)
        {
            return daProduct.Delete(int.Parse(id));
        }
        internal Product GetProductById(int id)
        {
            return daProduct.GetProductsbyId(id);
        }
    }
}
